<form id="tableTables" name="dataTableForm" action="" method="post">
	<input type="hidden" name="func" value="pickTables"/>
	<div id="tabs">
		<ul>
		<?php 
		foreach($this->adapter_tables_array as $adapterId => $type_tables)
		{
		?>
			<li><a href="#tab-<?= $adapterId ?>"><?= '['.$adapterId.'] ' . $type_tables['type'] ?></a></li>
		<?php 
		}
		?>
		</ul>
		
		<?php 
		foreach($this->adapter_tables_array as $adapterId => $type_tables)
		{
		?>
		<div id="tab-<?= $adapterId ?>">
			<?php 
			if(count($type_tables['tables']) > 0)
			{					
			?>
			<table id="<?= $adapterId ?>">
				<thead>
					<tr>
						<td>Name</td>
						<td>&nbsp;</td>
					</tr>
				</thead>
				<tbody>
					<?php 
					foreach($type_tables['tables'] as $tableName)
					{
						$checked = ''; $checked_toSort = '';
						if( @in_array($tableName, $type_tables['selectedTables']) ) 
							$checked = 'checked="checked"'; ...
					?>
					<tr>
						<td><?= $tableName ?></td>
						<td><input type="checkbox" name="tables[<?= $adapterId ?>][]" value="<?= $tableName ?>" <?= $checked ?> onclick="checked_toSort(this)" /><?= $checked_toSort ?></td>
					</tr>
					<?php 
					}
					?>
				</tbody>
			</table>
			<?php 
			} ...
			?>
			...
		<input type="submit" name="Weiter" value="Weiter" class="pull-right btn btn-primary" />
</form>

Array
(
    [id] => Array
        (
            [SCHEMA_NAME] => 
            [TABLE_NAME] => person
            [COLUMN_NAME] => id
            [COLUMN_POSITION] => 1
            [DATA_TYPE] => int
            [DEFAULT] => 
            [NULLABLE] => 
            [LENGTH] => 
            [SCALE] => 
            [PRECISION] => 
            [UNSIGNED] => 
            [PRIMARY] => 1
            [PRIMARY_POSITION] => 1
            [IDENTITY] => 
        )

    [name] => Array
        (
            [SCHEMA_NAME] => 
            [TABLE_NAME] => person
            [COLUMN_NAME] => name
            [COLUMN_POSITION] => 2
            [DATA_TYPE] => text
            [DEFAULT] => 
            [NULLABLE] => 1
            [LENGTH] => 
            [SCALE] => 
            [PRECISION] => 
            [UNSIGNED] => 
            [PRIMARY] => 
            [PRIMARY_POSITION] => 
            [IDENTITY] => 
        )
		...
		
Array
(
    [Filename] => .../files/ftp/127.0.0.1_21/csvbeispiel.csv
    [worksheets_count] => 1
    [worksheets] => Array
	(
		[Worksheet] => Array
			(
				[0] => Array
					(
						[0] => Username
						[1] => EmailAddress
						[2] => FirstName
						[3] => LastName
						[4] => Tel
					)

				[1] => Array
					(
						[0] => mm
						[1] => mm@contoso.edu
						[2] => Martin
						[3] => Mueller
						[4] => 1091990
					)

			)
			....
			
// Personen		
Array
(
	[0] => Array
		(
			[0] => 1
			[1] => john@email.com
			[2] => John
			[3] => Bill
			[4] => 0123456
		)
	[1] => Array
		(
			[0] => 2
			[1] => marting@email.de
			[2] => Martin
			[3] => Mustermann
			[4] => 1091990
		)
		...
)
// Bestellungen
Array
(
	[0] => Array
		(
			[0] => 1
			[1] => 1
			[2] => Produkt01
			[3] => 24.99
		)
	[1] => Array
		(
			[0] => 2
			[1] => 1
			[2] => Produkt02
			[3] => 60.15
		)
		...
)